<div class="bjui-pageContent">
    <form action="/admin/administration/canteen-add" method="post" data-toggle="ajaxform"
          data-options="{closeCurrent:true, okAfterCallback:canteenListRefresh}">
        <div class="bjui-row col-3">
            <label class="row-label" style="width: 150px">名称</label>
            <div class="row-input required" style="width:240px">
                <input type="text" name="name" style="width:220px" value="" data-rule="required">
            </div>
            <br/>
            <label class="row-label" style="width: 150px">承包人</label>
            <div class="row-input required" style="width:240px">
                <input type="text" name="name" style="width:220px" value="" data-rule="required">
            </div>
            <br/>
            <label class="row-label" style="width: 150px">餐位</label>
            <div class="row-input required" style="width:240px">
                <input type="text" name="name" style="width:220px" value="" data-rule="required">
            </div>
            <br/>
            <label class="row-label" style="width: 150px">状态</label>
            <div class="row-input required" style="width:240px">
                <input type="text" name="name" style="width:220px" value="" data-rule="required">
            </div>
            <br/>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">取消</button>
        </li>
        <li>
            <button type="submit" class="btn-default" data-icon="save">保存</button>
        </li>
    </ul>
</div>
<script>
    function canteenListRefresh() {
        $('#canteen-list').datagrid('refresh', true);
    }
</script>